package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SquareCarouselMapper;
import com.ruoyi.system.domain.SquareCarousel;
import com.ruoyi.system.service.ISquareCarouselService;
import com.ruoyi.common.core.text.Convert;

/**
 * animal.`square_Carousel`Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-08
 */
@Service
public class SquareCarouselServiceImpl implements ISquareCarouselService 
{
    @Autowired
    private SquareCarouselMapper squareCarouselMapper;

    /**
     * 查询animal.`square_Carousel`
     * 
     * @param id animal.`square_Carousel`主键
     * @return animal.`square_Carousel`
     */
    @Override
    public SquareCarousel selectSquareCarouselById(Long id)
    {
        return squareCarouselMapper.selectSquareCarouselById(id);
    }

    /**
     * 查询animal.`square_Carousel`列表
     * 
     * @param squareCarousel animal.`square_Carousel`
     * @return animal.`square_Carousel`
     */
    @Override
    public List<SquareCarousel> selectSquareCarouselList(SquareCarousel squareCarousel)
    {
        return squareCarouselMapper.selectSquareCarouselList(squareCarousel);
    }

    /**
     * 新增animal.`square_Carousel`
     * 
     * @param squareCarousel animal.`square_Carousel`
     * @return 结果
     */
    @Override
    public int insertSquareCarousel(SquareCarousel squareCarousel)
    {
        return squareCarouselMapper.insertSquareCarousel(squareCarousel);
    }

    /**
     * 修改animal.`square_Carousel`
     * 
     * @param squareCarousel animal.`square_Carousel`
     * @return 结果
     */
    @Override
    public int updateSquareCarousel(SquareCarousel squareCarousel)
    {
        return squareCarouselMapper.updateSquareCarousel(squareCarousel);
    }

    /**
     * 批量删除animal.`square_Carousel`
     * 
     * @param ids 需要删除的animal.`square_Carousel`主键
     * @return 结果
     */
    @Override
    public int deleteSquareCarouselByIds(String ids)
    {
        return squareCarouselMapper.deleteSquareCarouselByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除animal.`square_Carousel`信息
     * 
     * @param id animal.`square_Carousel`主键
     * @return 结果
     */
    @Override
    public int deleteSquareCarouselById(Long id)
    {
        return squareCarouselMapper.deleteSquareCarouselById(id);
    }
}
